import { getDics } from '../api/dic'
export const getDic = async (dictTypes:Array<string>) => {
  // 获取字典
  const res = await getDics(dictTypes)
  return res.data
}

export const filterDic = (diclist:Array<any>) =>{
  const array: any = []
  diclist.forEach((item: any) => {
    array.push({
      label: item.dictLabel,
      value: item.dictValue
    })
  })
  return array
}